package com.heima.news.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.news.domain.News;

import java.util.List;

public interface NewsService extends IService<News> {
    //分页查询新闻
    List<News> listNews(News news);

    Boolean delayPublishNews(List<Integer> newsIds);

    //新增

    int insertTbNews(News tbNews);
    //修改
    int updateTbNews(News tbNews);
    //删除
    int deleteTbNewsByNewsIds(Long[] newsIds);
    void publishNewsById(Long newsId);

    void deleteOldNews();

    void updateByNoticeId(News tbNews);

    int removeByNoticeIds(Long[] noticeIds);
}
